package factories

import (
	"gitee.com/sweetsunnyflower/carpooling-server-go/app/models/region"

	"github.com/bxcodec/faker/v3"
)

func MakeRegions(count int) []region.Region {

	var objs []region.Region

	// 设置唯一性，如 Region 模型的某个字段需要唯一，即可取消注释
	faker.SetGenerateUniqueValues(true)

	regionData := []string{
		"大同市",
		"新荣区",
		"云冈区",
		"左云县",
		"天镇县",
		"广灵县",
		"灵丘县",
		"矿务局",
	}

	for i := 0; i < count; i++ {
		regionModel := region.Region{
			Name: regionData[i],
		}
		objs = append(objs, regionModel)
	}

	return objs
}
